/*
 * @Author: your name
 * @Date: 2021-09-21 12:59:19
 * @LastEditTime: 2021-09-21 15:20:25
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \数据结构\栈\main.c
 */
#include <stdio.h>
#include <stdbool.h>
#include "stack.c"

int main(){
    STACK * s = createStack(5);
    printf("判断栈空:%d 判断栈满:%d\n",isEmpty(s),isFull(s));

    push(s,1);
    push(s,2);
    printf("判断栈空:%d 判断栈满:%d\n",isEmpty(s),isFull(s));
    printf("栈顶元素:%d capacity:%d\n",top(s),s->capacity);
    
    printf("pop:%d\n",pop(s));
    printf("pop:%d\n",pop(s));
    printf("判断栈空:%d 判断栈满:%d\n",isEmpty(s),isFull(s));

    freeStack(s);
    return 0;
}